import json
import os
from PyTest.config import BASE_DIR
url = BASE_DIR+"r/PyTest/data/01_data.json"
print(url)
def build_data():
    try:
        with open(BASE_DIR + r"/data/01_data.json", encoding="UTF8") as f:
            data_list= json.load(f)
            temp_list=[]
            for data in data_list:
                temp_tuple = tuple(data.values())
                temp_list.append(temp_tuple)
            return temp_list

    except Exception as e:
        print("文件不存在",e)
    finally:
        print("程序结束")

if __name__ =="__main__":
    print(build_data())